/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.bo.ExaminationPaperQuestionBO;
import com.xy.biz.ts.domain.po.ExaminationPaperQuestionPO;
import com.xy.biz.ts.domain.query.ExaminationPaperQuestionQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-3-23
 */
public interface ExaminationPaperQuestionManager {

	/**
	 * 保存
	 *
	 * @param examinationPaperQuestionBO
	 */
	int saveExaminationPaperQuestion(ExaminationPaperQuestionBO examinationPaperQuestionBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllExaminationPaperQuestion(Collection<ExaminationPaperQuestionBO> collection);

	/**
	 * 更新
	 *
	 * @param examinationPaperQuestionBO
	 */
	int updateExaminationPaperQuestion(ExaminationPaperQuestionBO examinationPaperQuestionBO);

	/**
	 * 删除
	 *
	 * @param examinationPaperQuestionId
	 */
	int deleteExaminationPaperQuestion(Long examinationPaperQuestionId);

	/**
	 * 查找一个
	 *
	 * @param examinationPaperQuestionId
	 * @return
	 */
	ExaminationPaperQuestionBO getExaminationPaperQuestion(Long examinationPaperQuestionId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<ExaminationPaperQuestionBO> listExaminationPaperQuestionById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<ExaminationPaperQuestionBO> listExaminationPaperQuestion(ExaminationPaperQuestionQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countExaminationPaperQuestion(ExaminationPaperQuestionQuery query);

    void deleteExaminationPaperQuestionsByPaperId(Collection<Long> examinationPaperId);
	int deleteExaminationPaperQuestionByExaminationPaperId(ExaminationPaperQuestionPO toPO);
}
